/**
 * Class containing the tit-for-two-tats strategy.
 * @author	081028AW
 */
public class StrategySimpleFinal extends Strategy
   {
  /**
   * Encoding for a simple strategy.
   */

   //int moveNum;
   public String simpleStratMoves = "0000000000";
   int currMove;
   public String simpleStrat;
   
  // 0 = defect, 1 = cooperate

   public StrategySimpleFinal()
	{
		name = "Simple";
		currMove = 0;
		moveNum = simpleStratMoves.length();
	}  /* StrategySimple */

   public int nextMove()
      {
		if(currMove >= moveNum-1)
		{
			currMove = 0;
		}
		else
		{
			currMove++;
		}
	
		return Character.digit(simpleStratMoves.charAt(currMove), 10);

      }  /* nextMove */

   }

